Page({
    data: {
        wrongQuestions: []
    },
    onLoad: function () {
        // 获取错题集数据
        const pages = getCurrentPages();
        const currentPage = pages[pages.length - 2];
        this.setData({
            wrongQuestions: currentPage.data.wrongQuestions
        });
    },
    goBack: function () {
        // 返回上一页（index页面）
        wx.navigateBack({
            delta: 1
        });
    }
});
